/**
 * 前端宝典分类选项
 */
export const categoryOptions = [
  { value: -1, label: '我的收藏' },
  { value: 0, label: 'AI' },
  { value: 3, label: 'HTML' },
  { value: 4, label: 'CSS' },
  { value: 1, label: 'JavaScript' },
  { value: 5, label: 'TypeScript' },
  { value: 2, label: 'Vue' },
  { value: 6, label: 'React' },
  { value: 7, label: 'Node.js' },
  { value: 11, label: 'Webpack / Vite' },
  { value: 8, label: '算法' },
  { value: 9, label: '网络' },
  { value: 10, label: '浏览器' },
  { value: 13, label: 'Nginx' },
  { value: 14, label: 'Git' },
  { value: 15, label: 'Docker' },
];

/**
 * 前端宝典难度选项
 */
export const difficultyOptions = [
  { value: 1, label: '简单' },
  { value: 2, label: '中等' },
  { value: 3, label: '困难' },
  { value: 4, label: '专家' }
];

/**
 * 前端宝典难度对应的颜色和文字
 */
export interface DifficultyInfo {
  color: string;
  text: string;
}

export const difficultyMap: Record<number, DifficultyInfo> = {
  1: { color: 'green', text: '简单' },
  2: { color: 'blue', text: '中等' },
  3: { color: 'orange', text: '困难' },
  4: { color: 'red', text: '专家' }
};

/**
 * 会员选项
 */
export const premiumOptions = [
  { value: true, label: '会员专属' },
  { value: false, label: '所有用户' }
];